package com.edu.service;

import com.github.pagehelper.PageInfo;
import com.edu.domain.PromotionAd;
import com.edu.domain.PromotionAdVO;

public interface PromotionAdService {

    /*
       分页查询广告信息
    */
    public PageInfo<PromotionAd> findAllPromotionAdByPage(PromotionAdVO promotionAdVO);

    /*
         广告动态上下线
     */
    public void  updatePromotionAdStatus(int id, int status);

    /*
        新建广告信息
    */
    public void savePromotionAd(PromotionAd promotionAd);

    /*
        修改广告信息
    */
    public void updatePromotionAd(PromotionAd promotionAd);

    /*
        接收广告ID,返回广告详细信息（回显操作）
    */
    public PromotionAd findPromotionAdById(Integer id);
}
